import request from '@/utils/request'

// 查询学生所属培训列表
export function listStudentjk(query) {
  return request({
    url: '/system/studentjk/list',
    method: 'get',
    params: query
  })
}

// 查询学生所属培训详细
export function getStudentjk(id) {
  return request({
    url: '/system/studentjk/' + id,
    method: 'get'
  })
}

// 新增学生所属培训
export function addStudentjk(data) {
  return request({
    url: '/system/studentjk',
    method: 'post',
    data: data
  })
}

// 修改学生所属培训
export function updateStudentjk(data) {
  return request({
    url: '/system/studentjk',
    method: 'put',
    data: data
  })
}

export function updateStudentjkAll(data) {
  return request({
    url: '/system/studentjk/all',
    method: 'put',
    data: data
  })
}

// 删除学生所属培训
export function delStudentjk(id) {
  return request({
    url: '/system/studentjk/' + id,
    method: 'delete'
  })
}

// 导出学生所属培训
export function exportStudentjk(query) {
  return request({
    url: '/system/studentjk/export',
    method: 'get',
    params: query
  })
}